'use strict';

const webpack = require('webpack');
const projectDir = require('fs-jetpack');

// Inject environment variables
require('../../conf.js');

/**
 * (Web) 客户端 Webpack 配置
 * @type {Object}
 */

module.exports = {
    debug: false,

    // The entry point for the bundle.
    // See http://webpack.github.io/docs/configuration.html#entry
    entry: {
        app: [
            projectDir.path('src/client/app.scss'),
            projectDir.path('src/client/app.jsx')
        ]
    },

    // Options affecting the resolving of modules.
    // See http://webpack.github.io/docs/configuration.html#resolve
    resolve: {
        extensions: ['', '.js', '.jsx', '.css', '.sass', '.scss']
    }
};
